package com.lhj.springsecuritydemo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @PostMapping("/login")
    public String login(){
        return "登录成功！";
    }
    @GetMapping("/user/api/hello")
    public String hello(){
        return "hello user";
    }
}
